<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/16
  Time: 9:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="static/css/style.css">
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">

        .upstu {
            width: 60vw;
            margin: 0 auto;
            position: relative;
            top: 100px;
        }

        .head {
            text-align: center;
            position: relative;
            top: 100px;
        }

        #bottom {
            width: 100%;
            height: 180px;
            position: fixed;
            bottom: 0px;
            background-color: #2A2730;
            color: #FFFFFF;
        }

        #bottom p {
            text-align: center;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="MessageServlet?action=queryMessage1">教师界面</a></li>

                <li><a href="pages/teacher/teacher.jsp">布置作业</a></li>
                <li><a href="HwServlet?action=queryHw&id=${sessionScope.teacher.id}">作业管理</a></li>

                <li class="active"><a href="pages/teacher/teacher_update.jsp">个人信息<span class="sr-only">(current)</span></a>
                </li>
                <li><a href="pages/teacher/teacher_change.jsp">改密码</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="UserServlet?action=logout">&nbsp;&nbsp;&nbsp;退出&nbsp;&nbsp;&nbsp;</a></li>

            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="head"><h3>教师信息修改</h3></div>
<div class="upstu">
    <form action="TeacherServlet">
        <input type="hidden" name="action" value="${empty sessionScope.teacher?"saveTeacher":"updateTeacher"}">
        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" class="form-control" id="name" name="name" value="${sessionScope.teacher.name}">
        </div>
        <div class="form-group">
            <label for="sex">性别</label>
            <input type="text" class="form-control" id="sex" name="sex" value="${sessionScope.teacher.sex}">
        </div>
        <div class="form-group">
            <label for="age">年龄</label>
            <input type="text" class="form-control" id="age" name="age" value="${sessionScope.teacher.age}">
        </div>

        <button type="submit" class="btn btn-default">确认修改</button>
    </form>
</div>

<%@include file="/pages/common/footer.jsp" %>
</body>
</html>
